package com.vitogiovanni.tobook.entity;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Gestore {
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key id;
	
	@Persistent
	private String email;

	@Persistent
	private String password;
	
	@Persistent
	private String nome;
	
	@Persistent
	private String cognome;
	
	@Persistent(mappedBy = "idGestore")
	private List<Locale> locali;
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getCognome() {
		return cognome;
	}

	public void setCognome(String cognome) {
		this.cognome = cognome;
	}

	public Key getId() {
		return id;
	}

	public List<Locale> getLocali() {
		return locali;
	}

	public void setLocali(List<Locale> locali) {
		this.locali = locali;
	}
	

}
